<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8">
	<link type="text/css" href="resources/css/jquery-ui.css" 		rel="stylesheet" />
	<link type="text/css" href="resources/css/flexigrid.css" 		rel="stylesheet">
	<link type="text/css" href="resources/css/main.css" 			rel="stylesheet"/>
	<link type="text/css" href="resources/css/ui.jqgrid.css"  media="screen" 	rel="stylesheet" />
	
	<script type="text/javascript" src="resources/jquery.min.js"></script>
	<script type="text/javascript" src="resources/jquery-ui.min.js"></script>
	<script type="text/javascript" src="resources/flexigrid.js"></script>
	
	<script type="text/javascript" src="resources/i18n/grid.locale-en.js" ></script>
	<script type="text/javascript" src="resources/jquery.jqGrid.src.js" ></script>
	
</head>
<body title="User's Registratoion">
	<div id="header">
	  <div class="center">
	    <div id="logo"><a href="#">STANDART</a></div>
	   </div>
	</div>
	<center>
	<br/>
	
<form:form id="submitAddUser" method="post" action="addUser"  commandName="registration">
	<table>
		<tr>
			<td><form:label path="name"><spring:message code="label.registeredUserFirstLastName" /></form:label></td>
			<td><form:input path="name" /></td>
		</tr>
		<tr>
			<td><form:label path="username"><spring:message code="label.registeredUserLogin" /></form:label></td>
			<td><form:input path="username" /></td>
		</tr>		
		<tr>
			<td><form:label path="password"><spring:message code="label.password" /></form:label></td>
			<td><form:input path="password" /></td>
		</tr>		
		<tr>
			<td><form:label path="password"><spring:message code="label.repeatPassword" /></form:label></td>
			<td><form:input path="password" /></td>
		</tr>		
		<tr>
			<td><form:label path="company"><spring:message code="label.registeredUserCompanyName" /></form:label></td>
			<td><form:input path="company" /></td>
		</tr>		
		<tr>
			<td><form:label path="email"><spring:message code="label.registeredUserEmail" /></form:label></td>
			<td><form:input path="email" /></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit"
				value="<spring:message code="label.addcontact"/>" /></td>
		</tr>
	</table>
</form:form>

	<c:if test="${not empty param.error}">
		<font color="red"> <spring:message code="label.loginerror" />
		: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} </font>
	</c:if>
	
</center>

</body>
</html>